const x = (() => {}) as Foo; 

const x = <Foo>(() => {});

export const x = {
  foo: () => {},
} as Foo;

export const x = <Foo>{
  foo: () => {},
};

export const x: Foo = {
  foo: () => {},
};

export const x = {
  foo: { bar: () => {} },
} as Foo;

export const x = <Foo>{
  foo: { bar: () => {} },
};

export const x: Foo = {
  foo: { bar: () => {} },
};

export const myObj = {
  set myProp(val: number) {
    this.myProp = val;
  },
};

export function foo(): unknown {
  return new Proxy(apiInstance, {
    get: (target, property) => {
      // implementation
    },
  });
};
